package de.koller.worlders.engine.entity.enc.pathfinding;

public class WayEntity {

	public final int tx;
	public final int ty;

	public WayEntity( int tx, int ty ) {
		this.tx = tx;
		this.ty = ty;
	}

	@Override
	public boolean equals( Object obj ) {
		if( obj == null ) {
			return false;
		}
		if( getClass() != obj.getClass() ) {
			return false;
		}
		final WayEntity other = ( WayEntity ) obj;
		if( this.tx != other.tx ) {
			return false;
		}
		if( this.ty != other.ty ) {
			return false;
		}
		return true;
	}

	@Override
	public int hashCode() {
		int hash = 7;
		hash = 79 * hash + this.tx;
		hash = 79 * hash + this.ty;
		return hash;
	}
	
}
